package com.baizhiedu.basic.pojo;

import com.baizhiedu.basic.anno.CreatedOnFuncation;
import com.baizhiedu.basic.anno.UpdatedOnFuncation;

import java.time.LocalDateTime;

/**
 * @Author: robert.song
 * @Date: Created in 2021/12/13
 */
public class User {
    private Integer id;
    private String name;
    private String pwd;
    @CreatedOnFuncation
    private LocalDateTime createDate;
    @UpdatedOnFuncation
    private LocalDateTime updateDate;

    public User() {
    }

    ;

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public LocalDateTime getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(LocalDateTime updateDate) {
        this.updateDate = updateDate;
    }

    public User(Integer id, String name, String pwd) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }
}
